const getters = {
  currentChatName: (state) => {
    return state.currentChatInfo.name || state.currentChatUserInfo.name
  },
  currentChatId: (state) => state.chatId,
  currentGroupMemberList: (state) => {
    const group = state.groupList.find((item) => item.id === state.receiverId)
    return group ? group.memberList : []
  },
  currentGroupNotice: (state) => {
    const group = state.groupList.find((item) => item.id === state.receiverId)
    return group ? group.notice : ""
  }
}
export default getters
